<template>
  <section class="recommend_wrapper">
    <div class="recommend">
      <div class="recommend_img">
        <img class="img"
             src="../../../assets/picture/caimei.jpg"
             alt="">
      </div>
      <div class="recommend_messages">
        <div class="message1"> 草莓</div>
        <div class="message2"> 非常新鲜</div>
        <div class="message3">特别好吃</div>
      </div>
    </div>
    <div class="recommend">
      <div class="recommend_img">
        <img class="img"
             src="../../../assets/picture/caimei.jpg"
             alt="">
      </div>
      <div class="recommend_messages">
        <div class="message1"> 草莓</div>
        <div class="message2"> 非常新鲜</div>
        <div class="message3">特别好吃</div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'homeRecommend',
  setup () {

  },
}
</script>

<style lang="scss" scoped>
.recommend_wrapper {
  width: 100%;
  margin: 0.2rem 0 0 0;
  .recommend {
    display: flex;
    width: 100%;
    height: 0.68rem;
    border-bottom: 1px solid black;
    .recommend_img {
      width: 20%;
      height: 0;
      overflow: hidden;
      padding-bottom: 20%;
      .img {
        width: 100%;
      }
    }
    .recommend_messages {
      font-size: 0.12rem;
      flex: 1;
      height: 0.68rem;
      position: relative;
      .message1 {
        position: absolute;
        top: 2%;
        left: 2%;
        font-size: 0.22rem;
      }
      .message2 {
        position: absolute;
        top: 50%;
        left: 10%;
      }
      .message3 {
        position: absolute;
        bottom: 10%;
        left: 10%;
      }
    }
  }
}
</style>